#!/usr/bin/python

class WykopRespProfile:
    
    def _setData(self, Data):
        
        self.login = Data['login']	
        self.email = Data['email']
        self.public_email = Data['public_email']
        self.name	 = Data['name']
        self.www	 = Data['www']
        self.jabber	 = Data['jabber']
        self.gg	 = Data['gg']
        self.city = Data['city']
        self.about	 = Data['about']
        self.author_group	 = Data['author_group']
        self.links_added	 = Data['links_added']
        self.links_published     = Data['links_published']
        self.comments	 = Data['comments']
        self.rank 	 = Data['rank']
        self.followers	 = Data['followers']
        self.following	 = Data['following']
        self.entries	 = Data['entries']
        self.diggs	 = Data['diggs']
        self.groups	 = Data['groups']
        self.avatar	 = Data['avatar']
        self.avatar_lo	 = Data['avatar_lo']
        self.avatar_med	 = Data['avatar_med']
        self.avatar_big	 = Data['avatar_big']
        self.is_observed = Data['is_observed']
        try:
            self.buries = Data['buries']
            self.user_vote	=   Data['user_vote']
            self.user_observe =  Data['user_observe']	
            self.user_favorite = Data['user_favorite']
        except KeyError:
            print 'No set UserKey'
    
    def _normalizeData(self, Data):

        Obj = WykopRespProfile()
        Obj._setData(Data)
        return Obj
    
    def _normalizeDatatoList(self,Data):
        List = []
        for El in Data:
            Obj = WykopRespProfile()
            Obj._setData(El)
            List.append(Obj)
        return List